<?php    
    $control = Yii::app()->controller->id;
    $action = Yii::app()->controller->action->id;
?>


<?php if(!isset($_SESSION["userId"])) { ?>
    <?php } else { ?>   
    <div class="User">
        <div class="User_1"><strong>Chào:</strong>&nbsp;<a class="do" href="<?php echo "http://". $_SESSION['username'].".soicaudep.com";?>"><strong><?php echo $_SESSION['username']; ?></strong></a></div>
        <div class="User_2"><a class="chu_User" href="<?php echo Url::createUrl("account/index"); ?>"><strong>Thông tin tài khoản</strong></a> | <a class="chu_User" href="<?php echo Url::createUrl("login/logout"); ?>"><strong>Thoát</strong></a></div>
        <div class="both"></div>
    </div>
    <?php if($control=="home" && $action=="index"){ ?>
        <div class="User_nd">
            <strong class="do">Thống Kê Doanh Thu</strong><br>
            <strong>Hôm nay: <?php echo !empty($revenue_day['revenue_member'])?$revenue_day['revenue_member']:0; ?> đ</strong><br>
            <span>Chi tiết: <?php echo !empty($revenue_day['sms'])?$revenue_day['sms']:0; ?> SMS - <?php  echo !empty($revenue_day['card'])?$revenue_day['card']:0; ?> Thẻ cào ( <?php echo !empty($revenue_day['revenue_member'])?$revenue_day['revenue_member']:0; ?> VND )</span><br>
            <strong>Tháng này: <?php echo !empty($revenue_month['revenue_member'])?$revenue_month['revenue_member']:0; ?> đ</strong><br>
            <span>Chi tiết: <?php echo !empty($revenue_month['sms'])?$revenue_month['sms']:0; ?> SMS - <?php echo !empty($revenue_month['card'])?$revenue_month['card']:0; ?> Thẻ cào  ( <?php echo !empty($revenue_month['revenue_member'])?$revenue_month['revenue_member']:0; ?> VND </span>)<br>
        </div>
        <?php } ?>
    <?php }?>